package fy.com.controller.real_status;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

import fy.com.controller.base.BaseController;
import fy.com.service.status.StatusService;
import fy.com.util.PageData;

@Controller
@RequestMapping(value="/realstatus")
public class RealstatusController extends BaseController{
	
	
	@Resource(name= "statusService")
	private StatusService statusService ;
	
	@RequestMapping(value="/realstatus")
	public ModelAndView graph()throws Exception{
		ModelAndView mv = this.getModelAndView();
		PageData pd=new PageData();
		pd=this.getPageData();
		List<PageData> dList=statusService.listId(pd);
		
		mv.addObject("pd",dList);
		
		mv.setViewName("real_status/realstatus");
		return mv;
	}

}
